{% extends "base.html" %}
{% load i18n %}

{% block content %}
<div class="content">
  <h1>{% trans "modify" %} {{ pic.title }}</h1>
  <form action="/picture/{{ pic.key.id }}/edit" method="post">
    <div class="formrow">
      <label>{% trans "picture title" %}:</label>
      <input type="text" name="title" value="{{ pic.title }}">
    </div>
    <div class="formrow">
      <label>{% trans "picture caption" %}:</label>
      <textarea name="caption" rows="4" cols="60">{{ pic.caption }}</textarea>
    </div>
    <div class="formrow">
      <label>{% trans "tags (separated with space)" %}:</label>
      <input type="text" name="tags" value="{{ pic.tags|join:' ' }}">
    </div>
    <div class="formrow">
      <input type="submit" value="{% trans 'save' %}">
      <a href="/picture/{{ pic.key.id }}" class="form_cancel">{% trans "cancel" %}</a>
    </div>
  </form>
</div>
<div class="side">
</div>
<script type="text/javascript" src="/static/lomoo.js"></script>
{% endblock %}
